var _api_root = "https://a.v2too.com/wdt",
// var _api_root ="http://192.168.3.66",
 api = {
   /** 用户接口 */
   user: {
    /** id 获取地址 */
    address_obj: _api_root + "/wx/address/address_obj",
    /** 用户默认地址 */
    default_address: _api_root + "/wx/address/default_address",
    /** 用户地址列表 */
    user_address: _api_root + "/wx/address/user_address",
    /** 新增用户地址 */
    add_address: _api_root + "/wx/address/add_address",
    /** 删除地址 */
    del_address: _api_root + "/wx/address/del_address",
  },
    index:{
      mineComms: _api_root +'/wx/mine_comms', /** 关注的社群 */
      mineOrder: _api_root +'/wx/ord/mine_order', /** 我的订单 */
      share_profits: _api_root + '/wx/share_mag', /** 分享装数据 */
      qrCode: _api_root + '/wx/qrCode', /** 获取二维码 */
      share_data: _api_root +'/wx/sharedata/sharedata', /** 人脉动态 */
    },
    order:{
      orderDetails: _api_root + '/wx/ord/ord_detail',
      enrolls: _api_root + "/wx/ord/enrolls", /** 活动报名列表 */
      comp_orders: _api_root + '/wx/ord/comp_order' /** 公司收益订单 */
    },
    wx:{
      qrCode: _api_root + '/wx/qrCode' /** 生成小程序码 */
    },
    banner:{
      getBanner:_api_root+"/banner/getBanner" 
    },
    active: {
      activities: _api_root + "/act/activities",
      tobuy: _api_root + '/pay/toBuy',
      shareAct: _api_root + "/wx/act/share_act"
    },
    company: {
      uploadImg: _api_root + "/common/wxUploadPic",
      creatCompany: _api_root + "/wx/add_company",
      mineCompany: _api_root + "/wx/comp/comp_detail",
      compDataDetail: _api_root + "/wx/comp/comp_data_detail"
    },
    follow:{
      addFollow: _api_root + "/wx/follow/add_follow",
      delFollow: _api_root + "/wx/follow/del_follow",
      add_collect: _api_root + "/wx/follow/add_collect",
      del_collect: _api_root + "/wx/follow/del_collect"
    },

    details:{
      artDetail: _api_root + "/wx/art/art_detail",
      proDetail: _api_root + "/wx/pro/pro_detail",
      actDetail: _api_root + "/wx/act/act_detail"
    },
    detail:{
        actDetail: _api_root +"/act/actDetail",
        checkCoupon: _api_root +"/act/checkCoupon",
        consultData: _api_root +"/cons/consultData",
        actReplyById: _api_root +"/act/actReplyById",
        actSpecByUUID: _api_root +"/act/actSpecByUUID",
        actEnrolls:_api_root +"/act/actEnrolls",
        addConsult:_api_root +"/cons/addConsult",
        addReply:_api_root +"/cons/addReply",
        delConsult:_api_root +"/cons/delConsult",
        checkCoupon:_api_root +"/act/checkCoupon",
        assDetail:_api_root +"/act/assDetail",
        add_del_Collection:_api_root+"/col/add_del_Collection"
    },
    community:{
      comm_detail: _api_root + "/wx/comm/comm_detail",
      comm_areas: _api_root + "/wx/comm/areas",
      artsList: _api_root + "/wx/art/arts",
      prosList: _api_root + "/wx/pro/pros",
      activesList: _api_root + "/wx/act/acts",
      /** 社群相册 */
      comm_albums: _api_root + "/wx/comm/comm_albums",
      album_imgs: _api_root + "/wx/comm/album_imgs",
    },
    login: {
        getOpenId:_api_root+"/wx/getOpenId",
        login:_api_root+"/wx/login",
        phoneCode:_api_root+"/wechat_mine/phoneCode",
        BindPhoneLogin: _api_root +"/wx/bind_phone",
        checkBindPhone: _api_root +"/wx/get_phone_code",
      },
      mine:{
        useCoupons: _api_root + "/wechat_mine/useCoupons",
        mine: _api_root + "/wx/mine",
        orderOfMine: _api_root + "/wechat_mine/orderOfMine",
        applyToCopartner: _api_root + "/wechat_mine/applyToCopartner",
        equityContent: _api_root + "/wechat_mine/equityContent",
        renewVIP: _api_root + "/wechat_mine/renewVIP",
        isCopartner: _api_root + "/wechat_mine/isCopartner",
        getMyBusiness:_api_root + "/wechat_mine/getMyBusiness",
        businessPerson:_api_root + "/wechat_mine/businessPerson",
        orderDetail:_api_root + "/wechat_mine/orderDetail",
        mineCoupon:_api_root + "/wechat_mine/mineCoupon",
        copartnerManager:_api_root + "/wechat_mine/copartnerManager",
        checkCoupon:_api_root + "/wechat_mine/checkCoupon",
        addPerson:_api_root + "/wechat_mine/addPerson",
        subordinateCopartner:_api_root + "/wechat_mine/subordinateCopartner",
        addSubordinateCopartner:_api_root + "/wechat_mine/addSubordinateCopartner",
      },
      class:{
        commentsOfMine:_api_root + "/rec/commentsOfMine",
        mineCollection:_api_root + "/rec/mineCollection",
        actOfMineParticipateIn:_api_root + "/rec/actOfMineParticipateIn",
        historyRecord:_api_root + "/rec/historyRecord",
      }
};

module.exports = api;